Hi Chirag,
It looks like you do not have AdGroupCriterion set for demographics in your
account, this is the reason the shared query is not returning the criterion_id
for demographics. You could use mutate operation of AdGroupCriterionService to
create the AdGroupCriterion for the demographic field by setting say age_range
as the criterion. You could then pull the criterion_Id for this
demographic(age) using the shared query. Once you are successfully able to pull
the criterion_id for demographics, you could use this criterion_id to build the
resource name for AdGroupBidModifier/CampaignBidModifer in the below format:
customers/{customer_id}/adGroupBidModifiers/{ad_group_id}~{criterion_id}
customers/{customer_id}/campaignBidModifiers/{campaign_id}~{criterion_id}
You can now modify the bids for demographics using
AdGroupBidModifierService/CampaignBidModifierService by specifying the
resource_name and bid_modifier value for this demographic. Let us know if this
clarifies your concern.
Regards,
Nikisha Patel, Google Ads API Team
ref:_00D1U1174p._5001UEJHgX:ref
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/7PbX4000000000000000000000000000000000000000000000PWK0C800e_wKwQsITAyMtbP46GOWGA%40sfdc.net.