No results returned looking up Campaign bid modifiers

60 views
Skip to first unread message

Rodney O'Donnell

unread,
Jun 5, 2019, 5:40:34 PM6/5/19
to AdWords API and Google Ads API Forum
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.

Google Ads API Forum Advisor Prod

unread,
Jun 6, 2019, 6:01:07 AM6/6/19
to adwor...@googlegroups.com
Hi Rodney,

So I can further investigate the issue, could you send via the Reply privately to author option your clientCustomerId and the complete JSON logs of your request which returned 0 results?

Thanks and regards,
Peter
Google Ads API Team

ref:_00D1U1174p._5001UBlkBD:ref
Reply all
Reply to author
Forward
0 new messages