Re: Universal app campaign not working

2019-08-14 Thread Google Ads API Forum Advisor Prod
Hi Imran,

My apologies as I sent the reply privately.

Thanks for your reply. I am a colleague of Hiroyuki and I will provide answer 
to your support.

I noticed in this link that you already posted your issue on the support 
channel of Python client library. With this, I would recommend that you wait 
for the response of the client library owners as they should be able to provide 
better guidance on how you can properly implement your code for creating your 
UACs using the AdWords API.

Regards,
Ejay
Google Ads API Team
ref:_00D1U1174p._5001UEIDGf: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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/iNETD0PW9DH2004cgZ6GTuQuOA321ACKyLyQ%40sfdc.net.


Re: Universal app campaign not working

2019-08-13 Thread Imran Khan
I've understood it and doing it the way I think it should be.  But there is 
still error,  can you please see my code again which I had mentioned in the 
last reply, and tell me what am i doing wrong? 
Thank you.

On Friday, August 9, 2019 at 10:49:01 AM UTC+5, adsapiforumadvisor wrote:
>
> Hi Imran,
>
> Thank you for providing the further details.
>
> You may refer to this guide 
> 
>  for 
> more details about the UniversalAppCampaignInfo type and try to implement 
> similar code below:
>
> UniversalAppCampaignInfo appCampaignInfo = new UniversalAppCampaignInfo();
> appCampaignInfo.biddingStrategyGoalType(INSERT_TYPE_HERE);
> appCampaignInfo.setAppId(INSERT_ID_HERE);
> appCampaignInfo.setAppVendor(INSERT_VENDOR_HERE);
>
> Campaign campaign = new Campaign();
> campaign.setName("INSERT_CAMPAIGN_NAME_HERE");
> campaign.setStatus(CampaignStatus.PAUSED);
> campaign.setUniversalAppCampaignInfo(appCampaignInfo);
>
> Please let me know if you have further clarifications.
>
> Regards,
> Hiroyuki
> Google Ads API Team
>
>
> ref:_00D1U1174p._5001UEIDGf: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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/879735ad-4232-4485-92bb-e7b76ebd9961%40googlegroups.com.


Re: Universal app campaign not working

2019-08-08 Thread Google Ads API Forum Advisor Prod
Hi Imran,

Thank you for providing the further details.

You may refer to this guide for more details about the UniversalAppCampaignInfo 
type and try to implement similar code below:

UniversalAppCampaignInfo appCampaignInfo = new UniversalAppCampaignInfo();
appCampaignInfo.biddingStrategyGoalType(INSERT_TYPE_HERE);
appCampaignInfo.setAppId(INSERT_ID_HERE);
appCampaignInfo.setAppVendor(INSERT_VENDOR_HERE);

Campaign campaign = new Campaign();
campaign.setName("INSERT_CAMPAIGN_NAME_HERE");
campaign.setStatus(CampaignStatus.PAUSED);
campaign.setUniversalAppCampaignInfo(appCampaignInfo);

Please let me know if you have further clarifications.

Regards,
Hiroyuki
Google Ads API Team
ref:_00D1U1174p._5001UEIDGf: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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/c1OeU0PVYG5G00LsND7H1CRbi2g_V84UlQTA%40sfdc.net.


Re: Universal app campaign not working

2019-08-08 Thread Imran Khan
Actually i have changed the field names as per told but still i'm not able 
to create a campaign, and I don't know the proper format for how to make an 
AD inside of that. My code and the error which i am facing is down below.


*ERROR*
googleads.errors.GoogleAdsServerFault: Unmarshalling Error: cvc-elt.4.3: 
Type 'ns0:UniversalAppCampaignInfo' is not validly derived from the type 
definition, 'Setting', of element 'ns0:settings'.


*CODE*

campaign_service = client.GetService('CampaignService', version='v201809')

budget_id = CreateBudget(client)

# Create the Universal App campaign.
universal_app_campaign = {
'name': 'Cruise App #%s' % uuid.uuid4(),
'status': 'PAUSED',
'advertisingChannelType': 'MULTI_CHANNEL',
'advertisingChannelSubType': 'UNIVERSAL_APP_CAMPAIGN',
# Set the campaign's bidding strategy. Universal app campaigns only
# support TARGET_CPA bidding strategy.
'biddingStrategyConfiguration': {
# Set the target CPA to $1 / app install.
'biddingScheme': {
'xsi_type': 'TargetCpaBiddingScheme',
'targetCpa': {
'microAmount': '100'
}
},
'biddingStrategyType': 'TARGET_CPA'
},
# Note that only the budgetId is required
'budget': {
'budgetId': budget_id
},
# Optional fields
'startDate': (datetime.datetime.now() +
  datetime.timedelta(1)).strftime('%Y%m%d'),
'endDate': (datetime.datetime.now() +
datetime.timedelta(365)).strftime('%Y%m%d'),
}

universal_app_campaign['settings'] = [
# Set the campaign's assets and ad text ideas. These values will
# be used to generate ads.
{
'xsi_type': 'UniversalAppCampaignInfo',
'appId': 'com.app'
'appVendor': 'VENDOR_GOOGLE_MARKET',
}
]


# Construct operations and add campaigns.
operations = [{
'operator': 'ADD',
'operand': universal_app_campaign
}]

campaigns = campaign_service.mutate(operations)['value']

On Thursday, August 8, 2019 at 2:58:37 PM UTC+5, adsapiforumadvisor wrote:
>
> Hi Imran,
>
> Unfortunately, we don't have the exact sample code that you are looking 
> for. You may specify the UniversalAppCampaignInfo 
> 
>  in 
> your API call instead of UniversalAppCampaignSetting.
>
> If you are encountering any issues while you update your code, I would 
> suggest that you reach out to the owners 
>  of the client 
> library as they are more equipped to answer to your questions.
>
> Regards,
> Hiroyuki
> Google Ads API Team
>
>
> ref:_00D1U1174p._5001UEIDGf: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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/d2a844d5-d3b9-407d-8be0-72b82a458023%40googlegroups.com.


Re: Universal app campaign not working

2019-08-08 Thread Google Ads API Forum Advisor Prod
Hi Imran,

Unfortunately, we don't have the exact sample code that you are looking for. 
You may specify the UniversalAppCampaignInfo in your API call instead of 
UniversalAppCampaignSetting.

If you are encountering any issues while you update your code, I would suggest 
that you reach out to the owners of the client library as they are more 
equipped to answer to your questions.

Regards,
Hiroyuki
Google Ads API Team
ref:_00D1U1174p._5001UEIDGf: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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/qxaNT0PVWX1900S2_I8TT3SXaY7O8mMNBrRw%40sfdc.net.


Re: Universal app campaign not working

2019-08-08 Thread Imran Khan
Yes i've figured out that this was the issue but we need an example which 
could illustrate how to do that. Can you please provide any sample code ? 



On Thursday, August 8, 2019 at 11:31:33 AM UTC+5, adsapiforumadvisor wrote:
>
> Hi Imran,
>
> OperationAccessDenied.OPERATION_NOT_PERMITTED_FOR_CAMPAIGN_TYPE 
> 
>  error 
> usually occurs when the operation is not permitted on the campaign type. 
> Since you are trying to create a mobile app campaign, you may refer to this 
> blog post 
> 
>  and 
> you may need to update your code based on the changes discussed in the blog.
>
> If the issue still persists after updating your code, so I can further 
> investigate the issue, could you provide the complete SOAP request and 
> response 
> 
>  logs 
> via *Reply privately to author*? If you haven't enabled logging, you may 
> enable the SOAP logging by referring to this guide 
> 
> .
>
> Regards,
> Hiroyuki
> Google Ads API Team
>
>
> ref:_00D1U1174p._5001UEIDGf: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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/ae555a42-9141-4a09-ba54-70757a18b24b%40googlegroups.com.


RE: Universal app campaign not working

2019-08-08 Thread Google Ads API Forum Advisor Prod
Hi Imran,

OperationAccessDenied.OPERATION_NOT_PERMITTED_FOR_CAMPAIGN_TYPE error usually 
occurs when the operation is not permitted on the campaign type. Since you are 
trying to create a mobile app campaign, you may refer to this blog post and you 
may need to update your code based on the changes discussed in the blog.

If the issue still persists after updating your code, so I can further 
investigate the issue, could you provide the complete SOAP request and response 
logs via Reply privately to author? If you haven't enabled logging, you may 
enable the SOAP logging by referring to this guide.

Regards,
Hiroyuki
Google Ads API Team
ref:_00D1U1174p._5001UEIDGf: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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/I1zE50PVWNG200CyiUqnlATASMrwYxMwrNyA%40sfdc.net.


Universal app campaign not working

2019-08-07 Thread Imran Khan
I'm trying to create a mobile app campaign via google adwords api , version 
201809,I'm following this sample of code written in python. 

https://github.com/googleads/googleads-python-lib/blob/aa3b1b474b0f9789ca55ca46f4b2b57aeae38874/examples/adwords/v201809/advanced_operations/add_universal_app_campaign.p
 

y



But unfortunately it gives me an error which i have mentioned below.

[OperationAccessDenied.OPERATION_NOT_PERMITTED_FOR_CAMPAIGN_TYPE @ 
operations[0].operand.settings]



https://github.com/googleads/googleads-python-lib/blob/aa3b1b474b0f9789ca55ca46f4b2b57aeae38874/examples/adwords/v201809/advanced_operations/add_universal_app_campaign.p
 

y


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/fbf79b60-a0d1-4a0d-bae1-075174ab9461%40googlegroups.com.