Hi,
I am able to use the Google Ads API to search for ad_group_bid_modifier,
but get no results searching for campaign_bid_modifier.
// Query .Net API
public void TestFailure(GoogleAdsClient client, string customerId)
{
// Working as expected, returns 10k results.
var adGroupModifierQuery = *"SELECT ad_group.id, ad_group.name,
campaign.id, campaign.name, ad_group_bid_modifier.criterion_id,
ad_group_bid_modifier.bid_modifier FROM ad_group_bid_modifier"*;
var adGroupRequest = new SearchGoogleAdsRequest() { Query =
adGroupModifierQuery, CustomerId = customerId };
var adGroupModifiers =
client.GetService(Services.V1.GoogleAdsService).Search(adGroupRequest).ToList();
// Returns 0 results ... why?
var campaignModifierQuery = *"SELECT campaign.id,
campaign_bid_modifier.criterion_id, campaign_bid_modifier.bid_modifier FROM
campaign_bid_modifier**"*;
var campaignRequest = new SearchGoogleAdsRequest() { Query =
campaignModifierQuery, CustomerId = customerId };
var campaignModifiers =
client.GetService(Services.V1.GoogleAdsService).Search(campaignRequest).ToList();
}
Looking in the Google Ads UI, there should be a single campaign in this
account (which I confirmed with "SELECT campaign.id, campaign.name,
campaign.status FROM campaign").
This campaign should have bid modifiers for Location, Schedule and Device
... but none are being returned by the API.
I've also tried hitting the CampaignBidModifierService for modifiers with
no success.
var campaignBidModifierService =
client.GetService(Services.V1.CampaignBidModifierService);
var campaignModifier1 =
campaignBidModifierService.GetCampaignBidModifier($"customers/{customerId}/campaignBidModifiers/{campaignId}~30000");
Any idea what is going wrong here?
We have multiple accounts under our main MCC account and I can't retrieve
campaign modifiers for any that I have tried.
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
---
You received this message because you are subscribed to the Google Groups
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/c5932753-ebf8-4008-9fbb-6cacec6fe444%40googlegroups.com.