Disparity between Adwords GUI Cost and API Cost

2022-04-06 Thread Laurie McIntosh
Hi all, I'm trying (and succeeding) to get Campaign Cost ouf the API. For a Campaign, for date range X (say, a month), The GUI says 5000 euros. For the same date range, the API says 4000 euros. I can't work out why they're different. Doesn't look like a rounding issue. Trying a shorter date ra

Getting campaign stats from campaigns with locations defined as lat/long/radius

2022-03-21 Thread Laurie McIntosh
Hi all, Imagine a campaign where you're including specific regions as well as regions defined as lat/long/radius. Say on Monday you've got one location defined as (-37,170) and radius 60km. Wedensday, you delete that location from the campaign, due to operational reasons. Friday, things chan

python google-ads api get quota remaining

2022-02-17 Thread Laurie McIntosh
Hi all, I have some processes that seem to be quite expensive in terms of quota being used up. I'd like to run a process and then log what's remaining of my quota after it's run. Any way to get this through the API? ---=L -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us o

Re: Python GoogleAdsClient update multiple keyword bids simultaneously

2022-02-15 Thread Laurie McIntosh
Perfect. Didn't realise it took a list as an operator. Many thanks for your help. On Wednesday, February 16, 2022 at 6:05:20 AM UTC+13 adsapi wrote: > Hi Laurie, > > 'keyword_view' gives you all the keywords that are at ad group level, you > can use the adGroupCriterionService >

Re: Python GoogleAdsClient update multiple keyword bids simultaneously

2022-02-14 Thread Laurie McIntosh
Well... using https://github.com/googleads/google-ads-python/blob/2a1d6062221f6aad1992a6bcca0e7e4a93d2db86/examples/campaign_management/add_complete_campaigns_using_batch_job.py as a starting point, I can query like: query = """ SELECT campaign.id, ad_group.id, ad_group_criterion.keyword.text,

Re: Python GoogleAdsClient update multiple keyword bids simultaneously

2022-02-13 Thread Laurie McIntosh
>> You can use these reports to just change just the keyword bids that fit for your use case. Awesome. How? I see how to run the report to get the values. How do I push the updated values back up? On Saturday, February 12, 2022 at 3:18:17 AM UTC+13 adsapi wrote: > Hi Laurie, > > Thank you for

Python GoogleAdsClient update multiple keyword bids simultaneously

2022-02-10 Thread Laurie McIntosh
Hi all, I have several adgroups for which I need to daily update the max cpc at the keyword level. I'd like to know how to do this efficiently. Currently I'm updating at the adgroup level, but some of these campaigns are setup to have the keyword bid override the adgroup maxcpc value. So I

Controlling campaigns via API when Another account manages the client

2020-06-24 Thread Laurie McIntosh
Hi all, I am currently able to control campaigns via API for clients my account is managing. This sort of idea: campaign_service = client.GetService("CampaignService", version="v201809") client.client_customer_id = xxx # Construct operations and update campaign. operations = [ {"operator": "

How to get and update campaign budget via API

2020-02-06 Thread Laurie McIntosh
Hi there, What I'm REALLY trying to do is, day by day, run or NOT run (activate or deactivate, spend budget or NOT spend budget) a campaign based on certain operational criteria. Using python. I can connect to the API and get campaign details. I'm just working out the best way to (daily) turn