Posts under category google-ads-api

I need to modify the blocked IP addresses for a given campaign using the Google Ads API call (version v8). I figured that to add blocked IPs to a given campaign I must create a new campaign criterion, not update an existing one, using the MutateCampaignCriterion endpoint.

My request is

Request: customer_id: "xxxxxxxx" operations {   create {     ip_block {       ip_address: "xxx.x.x.xx"     }     campaign: "customers/xxxxxxx/campaigns/xxxxxxx"   } } validate_only: true 

with the proper numbers instead of the x's. The error I get is

Fault: errors {   error_code {     criterion_error: FIELD_INCOMPATIBLE_WITH_NEGATIVE_TARGETING   }   message: "The field is not allowed to be set when the negative field is set to true, e.g. we don\'t allow bids in negative ad group or campaign criteria."   location {     field_path_elements {       field_name: "operations"       index: 0     }     field_path_elements {       field_name: "create"     }     field_path_elements {       field_name: "ip_block"     }   } } 

Even when I set the negative field to false the same occurs. I don't understand why. Any help would be appreciated, thanks!

Flutter App. One button that leads to the 2nd page where the content is.

  • The user clicks on the button and must watch a video ad(rewarded ad).

After the video ad finishes > the user can open the 2nd page / or the 2nd page will be automatically opened when he clicks 'x' on the finished video ad.

My question is > how to do this? What would the code look like and what to use? Thank you!

I am totally new to google ads, I have a google ads account setup. I have a customer id (which I believe is the parent account id), under this I have a lot of 'Accounts' (url: ads.google.com/aw/accounts) setup. Every account have a list of campaigns. I want to prepare a report to fetch all campaigns and there settings. I am using postman to hit google apis (googleads.googleapis.com/v8).

I want to know what apis I can use to list all customer accounts and their campaigns?

I recently started to use Google Adwords API, and trying to figure out how to load all Google locations(geotargets)? I can see that there is csv file available on their page with all locations - https://developers.google.com/adwords/api/docs/appendix/geotargeting and it gets updated from time to time with newer version, if some changes are made to it. After every update the latest file has different name. Is there a way to get this csv file programmatically using their API? Or if not csv file, then just a list of locations?

By the way, this file has about 100,000 rows, why there are not so many locations in there?

I am trying to work out, in nextjs (reacts) how would I insert a Google Adsense after say the 3 paragraph in the article?

basically we embed the content like this

 <Card.Body dangerouslySetInnerHTML={{__html: data.news.content }}>                    

And somehow I want to after it is loaded to check how many paragraph and insert the ad after say 3 paragraphs.