'AD BUDGET PRICING URL FORMATION
For some reason I'm not able to get the response for the API for Ad Budget Pricing from the document attached herewith https://docs.microsoft.com/en-us/linkedin/marketing/integrations/ads-reporting/ad-budget-pricing?tabs=http
This is the sample encoded url given in the doc and we want to build the same api for our use-case:
GET https://api.linkedin.com/v2/adBudgetPricing?account=urn%3Ali%3AsponsoredAccount%3A1245678&bidType=CPM&optimizationTargetType=MAX_CLICK&objectiveType=WEBSITE_VISIT&campaignType=SPONSORED_INMAILS&matchType=EXACT&q=criteriaV2&&targetingCriteria=(include:(and:List((or:(urn%3Ali%3AadTargetingFacet%3AstaffCountRanges:List(urn%3Ali%3AstaffCountRange%3A%28501%2C1000%29))))))&dailyBudget=(amount:300,currencyCode:USD)
We have tried hitting(by using our own values from responses and replacing above):
https://api.linkedin.com/v2/adBudgetPricing?account=urn%3Ali%3AsponsoredAccount%3A{sponsored_acc_id}&bidType=CPM&campaignType=SPONSORED_UPDATES&q=criteriaV2&targetingCriteria=(include:(and:List((or:({urn%3Ali%3AadTargetingFacet%3AinterfaceLocales}:List({urn%3Ali%3Alocale%3Aen_US}))))))
We are picking our values for targetingCriteria from here(response of Campaigns) and are probably facing some issue with this field only:
"storyDeliveryEnabled": false,
"targetingCriteria": {
"include": {
"and": [
{
"or": {
"urn:li:adTargetingFacet:interfaceLocales": [
"urn:li:locale:en_US"
]
}
},
Can someone please look at the above and help us build this url correctly or check why we're facing issue building this. Are we missing something.Or are we replacing our values for targetingCriteria incorrectly? ANY HELP IS HIGHLY APPRECIATED.
Thanks.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
